package com.lehecai.core.search.api.impl;

import com.lehecai.core.search.api.ISearchApiResponse;
import com.lehecai.core.search.api.ISearchApiResponseBody;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 搜索服务请求响应抽象
 * User: sunshow
 * Date: 13-4-1
 * Time: 上午9:14
 */
public abstract class AbstractSearchApiResponse implements ISearchApiResponse {

    protected Logger logger = LoggerFactory.getLogger(this.getClass());

    private int status;

    private long serial;

    private ISearchApiResponseBody body;

    @Override
    public int getStatus() {
        return this.status;
    }

    @Override
    public long getSerial() {
        return this.serial;
    }

    @Override
    public ISearchApiResponseBody getBody() {
        return this.body;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public void setSerial(long serial) {
        this.serial = serial;
    }

    public void setBody(ISearchApiResponseBody body) {
        this.body = body;
    }
}
